﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GTA.Web.Pages
{
    public class BasePage : System.Web.UI.Page
    {
        #region Constants
        private const string BASE_WINDOW_TITLE = "GTA - ";
        protected const string DATE_FORMAT = "dd/MM/yyyy";
        protected const string DATE_FORMAT_FULL = "dd/MM/yyyy - HH:mm:ss";
        #endregion

        #region Properties
        public GTAMaster GTAMasterPage
        {
            get { return this.Master as GTAMaster; }
        } 
        #endregion

        #region Methods
        protected void HandleException(String operation, Exception ex)
        {
            ((GTAMaster)this.Master).HandleException(operation, ex);
        }
        protected void ShowMessage(String message, UserControls.ucMessage.MessageType type)
        {
            ((GTAMaster)this.Master).ShowMessage(message, type);
        }
        #endregion
    }
}
